import {CustomerRender} from "../index.ts";
import {BaseRenderer} from "../render/base-renderer.ts";

/**
 * 自定义渲染器类
 */
export class CustomerRenderer extends BaseRenderer {
    /**
     * 渲染方法 - 子类必须实现
     */
    render(item: CustomerRender<any>, propsData: any) {
        return item.renderFn ? item.renderFn(propsData?.data) : null
    };
}